import {
    ConfigProvider,
    Result,
    Button,
    Card,
    PageHeader,
    Form,
    Input,
    Layout,
    Row,
    Col,
    Typography,
    Select,
    Alert,
    Menu,
    Dropdown,
    Divider,
    Checkbox,
    Tag,
    Tree,
    Radio,
    Spin,
    List,
    Tabs,
    Avatar,
    Table,
    Popconfirm,
    Drawer,
    Statistic,
    Modal,
    Tooltip,
    Upload,
    DatePicker,
    Timeline,
    Icon,
    Cascader,
    Pagination,
    Anchor,
} from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'


// import {DatePicker } from 'ant-design-vue/date-picker';

// 保持此列表与上面的import一致
const components = [
    ConfigProvider,
    Result,
    Button,
    Card,
    PageHeader,
    Form,
    Input,
    Layout,
    Row,
    Col,
    Typography,
    Select,
    Alert,
    Menu,
    Dropdown,
    Divider,
    Checkbox,
    Tag,
    Tree,
    Radio,
    Spin,
    List,
    Tabs,
    Avatar,
    Table,
    Popconfirm,
    Drawer,
    Statistic,
    Modal,
    Tooltip,
    Upload,
    DatePicker,
    Timeline,
    Icon,
    Cascader,
    Pagination,
    Anchor,
]

export function setupAntd(app) {
    components.forEach((i) => {
        app.use(i)
    })
    
   
}

